﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductThumbnail.ascx.cs" Inherits="aspZone.Commerce.Web.App.Views.Shared.ProductThumbnail" %>
<div class="productthumbnail">
    <a href="<%= Html.BuildUrlFromExpression<CatalogController>(x => x.Product(ViewData.Model.Id, ViewData.Model.UrlName)) %>" 
        title="Go to <%= Html.Encode(ViewData.Model.Name) %> Details Page">
        <%= Html.Image("~/Content/ProductImages/" + ViewData.Model.DefaultImage.Thumbnail) %>
    </a>
    <h3>
        <a href="<%= Html.BuildUrlFromExpression<CatalogController>(x => x.Product(ViewData.Model.Id, ViewData.Model.UrlName)) %>" 
            title="Go to <%= Html.Encode(ViewData.Model.Name) %> Details Page">
            <%= Html.Encode(ViewData.Model.Name) %>
        </a>
    </h3>
    Price: <%= ViewData.Model.Price.ToString("C") %>
</div>
